package cn.tedu.analyse.dao.mapper;

import cn.tedu.analyse.pojo.entity.Comments;
import cn.tedu.analyse.pojo.vo.CommentsVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface CommentsMapper{

    void createComment(Comments comments);

    Comments getLatestComment();

    List<CommentsVO> listComments(Long articleId);

    void deleteComment(Long commentId);


}
